local skel = fk.CreateSkill {
  name = "emo__yanchang",
  tags = {Skill.Limited},
}

Fk:loadTranslationTable{
  ["emo__yanchang"] = "演唱",
  [":emo__yanchang"] = "限定技，当你脱离濒死状态时，你可以摸等于存活角色数的牌。",

  ["$emo__yanchang1"] = "我们以后一起唱好不好？",
  ["$emo__yanchang2"] = "一起唱，一起做学园偶像！",
}

skel:addEffect(fk.AfterDying, {
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(skel.name)
    and player:usedSkillTimes(skel.name, Player.HistoryGame) == 0
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    player:drawCards(#room.alive_players, skel.name)
  end,
})

return skel
